package cn.appsys.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;

import cn.appsys.biz.CategoryBiz;
import cn.appsys.entity.AppCategory;

@Controller
public class CategoryController {
	/*
	@Autowired
	CategoryBiz categoryBiz;
	
	
	@RequestMapping("/appma")
	public String showappmaintain(Model model){
		List<AppCategory> listone =categoryBiz.getAllCategory();
		model.addAttribute("listone",listone);
		
		return "appmaintain";
	}
	@RequestMapping(value="twoAll",produces={"application/json;charset=utf-8"})
	@ResponseBody
	public String  twoAll(Integer parentId) throws Exception{
		
		return JSON.toJSONString(categoryBiz.getAppCategoryListByParentId(parentId));
	}
	
	@RequestMapping(value="threeAll",produces={"application/json;charset=utf-8"})
	@ResponseBody
	public String threeAll(Integer parentId) throws Exception{
		
		return JSON.toJSONString(categoryBiz.getAppCategoryListByParentId(parentId));
	}
	*/
}
